//控制总路由跳转。

import React from 'react';
import { Route, Redirect } from 'react-router-dom';
import Index from '../module/index/index.js'
import Login from '../module/login/login.js'
import LoadableComponent from '../utils/LoadableComponent'

export class Routers extends React.Component {
  render() {
    return (
    	
		<div className="router">
			
            <Route exact path="/" component={Index}></Route>
            {/* <Redirect exact from='/' to='/index' /> */}
			<Route path="/index" component={Index}></Route>
			<Route path="/login" component={Login}></Route>
      

		</div>
		
    )
  }
}
export default Routers; 